package com.snow.useviewdemo.zoomimage;

import android.os.Bundle;

import com.snow.common.base.BaseBasesActivity;
import com.snow.img.ImageUtil;
import com.snow.useviewdemo.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * author : zyt
 * e-mail : 632105276@qq.com
 * date   : 2019-08-28
 * desc   :图片跟随手势缩放
 */
public class ZoomImageAct extends BaseBasesActivity {
    @BindView(R.id.pinchImageView)
    PinchImageView pinchImageView;

    @Override
    protected int getContentViewId() {
        return R.layout.act_zoom_image;
    }

    @Override
    protected void initView() {
        String url = "https://staticcdn.changguwen.com/cms/img/201896/77b6f00f-83f1-4cf3-8010-963b6ccfa2ca-1536217270353.jpg";
        ImageUtil.imageLoad(this, url, pinchImageView);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
    }
}
